<?php

namespace  app\index\controller;

use app\common\controller\IndexController;
use think\App;
use think\facade\Cache;
use think\facade\Db;
use think\facade\View;
use app\index\model\CardsTrans;

/**
 * 首页管理
 * Class Index
 * @package app\admin\controller
 */
class Check extends  IndexController {

    public function __construct(App $app)
    {
        parent::__construct($app);
        View::assign([
            'menu_class' => 'check',
            'menu_child' => ''
        ]);
    }

    /**
     * 首页
     * @author 救火队队长
     */
    public function  index() {
        if ($this->request->isPost()) {
            $data = input('param.');
            $cdLogModel = new CardsTrans();
            return $cdLogModel->tableDataInfoCode($data + ['user_id' => $this->user_id]);
        }
        View::layout(true);
        return View::fetch();
    }
}
